﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace InChatter.Client.Service
{
    public class ChatCallback:ChatServer.IChatCallback
    {
        public event Action<ChatServer.InChatterMessage> OnMessgeReceived;

        public void ReceiveMsg(ChatServer.InChatterMessage message)
        {
            if (OnMessgeReceived != null)
            {
                OnMessgeReceived(message);
            }
        }
    }
}
